package com.youkeyi.ddy.cloud.common.api.application.system.pay;

import com.youkeyi.ddy.cloud.common.api.application.system.pay.dto.SystemPayTypeListCloudDto;
import com.youkeyi.ddy.cloud.common.api.application.system.pay.param.SystemPayTypeCreateCloudParam;
import com.youkeyi.ddy.cloud.common.api.application.system.pay.param.SystemPayTypeDeleteCloudParam;
import com.youkeyi.ddy.cloud.common.api.application.system.pay.param.SystemPayTypeListCloudParam;
import com.youkeyi.ddy.cloud.common.api.application.system.pay.param.SystemPayTypeUpdateCloudParam;
import com.youkeyi.ddy.cloud.common.response.ResponseContent;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * SystemPayTypeCloudServiceFallback
 *
 * @Author liuxiawang
 * @Date 1/28/22 4:12 PM
 * @Location shenzhen.china
 */
@Component
@RequestMapping("/system/pay/type/fallback")
public class SystemPayTypeCloudServiceFallback implements SystemPayTypeCloudService {

    @Override
    public SystemPayTypeListCloudDto list(SystemPayTypeListCloudParam param) {
        return new SystemPayTypeListCloudDto(Boolean.FALSE, "服务不可用");
    }

    @Override
    public ResponseContent create(SystemPayTypeCreateCloudParam param) {
        return new ResponseContent(Boolean.FALSE, "服务不可用");
    }

    @Override
    public ResponseContent update(SystemPayTypeUpdateCloudParam param) {
        return new ResponseContent(Boolean.FALSE, "服务不可用");
    }

    @Override
    public ResponseContent delete(SystemPayTypeDeleteCloudParam param) {
        return new ResponseContent(Boolean.FALSE, "服务不可用");
    }
}
